package com.jctrip.hotel.source.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author：Haruhi
 * @description: 其余酒店信息
 * @Date：2023/8/30 15:56
 * @Package：com.jctrip.hotel.source.client
 * @Project：hotel-main
 */
@FeignClient(name = "GreenTreeOtherHotelClient" ,url = "${feign.url.greentreeotherhotel}")
@RequestMapping(headers = {"accept=application/xml", "Content-Type=application/xml;charset=UTF-8", "Accept-Encoding=gzip, deflate"})
public interface GreenTreeOtherHotelClient {
    /**
     * 获取酒店早餐信息
     */
    @PostMapping(value = "RoomType/GetBreakfastInfo",
            consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    String getBreakfastInfo(@RequestBody MultiValueMap<String, ?> postData);

    /**
     * 获取酒店所有活动房型（获取活动房列表）
     */
    @PostMapping(value = "ActivityRoom/GetActivityRoomList",
            consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    String getActivityRoomList(@RequestBody MultiValueMap<String, ?> postData);

    /**
     * 获取酒店所有活动房价房量（活动全量）
     */
    @PostMapping(value = "ActivityRoom/GetAllRoomCountAndPrice_Activity",
            consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    String getAllRoomCountAndPriceActivity(@RequestBody MultiValueMap<String, ?> postData);
}
